REM The following builds the project executable in Debug mode. This ensures that the "Detected Dependencies" folder
REM in the Mews.Installer project already contains all direct and indirect dependencies when VS loads the solution.
REM If we only built the installer project, then the dependencies would not be updated and e.g. Mews.dll would be
REM missing from the .cab file.
"C:\Windows\Microsoft.NET\Framework\v3.5\msbuild" ".\Mews.Application\Mews.Application.csproj" "/p:Configuration=Debug"
"C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" Mews.sln /build Release /project Mews.Installer /out log.txt

FOR /f "tokens=1-3 delims=- " %%a in ('date /t') do (set bdate=%%a-%%b-%%c)
FOR /f "tokens=1-2 delims=:" %%a in ('time /t') do (set btime=%%a-%%b)


"C:\Program Files\7-zip\7z.exe" a "\\MYBOOKLIVE\Andreas\Archive\Data\MewsReleases\Mews.Application.armv4i-%bdate%-%btime%-00.zip" "-i!C:\Users\Andreas\Documents\mews\Mews.Application\ReadMe.txt" "-i!C:\Users\Andreas\Documents\mews\License.txt" "C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE\NETCFv35.wm.armv4i.cab" "C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5\Devices\wce500\armv4i\sqlce.ppc.wce5.armv4i.CAB" "C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5\Devices\wce500\armv4i\sqlce.repl.ppc.wce5.armv4i.CAB" -i!C:\Users\Andreas\Documents\mews\Mews.Installer\Release\Mews.Installer.CAB